package com.example.common.web.exception;

import com.example.common.web.response.ResultCode;
import lombok.Data;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/10/31-10-31-15:07
 * @Description：com.example.common.web.exception
 */
@Data
public class CustomerException extends RuntimeException{
    private String message;
    private ResultCode resultCode;    //抛出的枚举对象

    public CustomerException() {
    }
    public CustomerException(String message) {
        super(message);
        this.message = message;
    }
    public CustomerException(ResultCode resultCode){
        this.resultCode = resultCode;
    }
}
